package data

import (
	"VideoMemberCard/app/payment/task/internal/biz"
	"context"
	"github.com/go-kratos/kratos/v2/log"
)

var _ biz.PaymentRepo = (*paymentRepo)(nil)

type paymentRepo struct {
	data *Data
	log  *log.Helper
}

func NewPaymentRepo(data *Data, logger log.Logger) biz.PaymentRepo {
	return &paymentRepo{
		data: data,
		log:  log.NewHelper(log.With(logger, "module", "repo/payment")),
	}
}

func (r *paymentRepo) UpdatePayment(ctx context.Context, id string) (bool, error) {
	// 获取kafka任务
	// 更新数据库mysql
	// 更新缓存redis
	return true, nil
}
